package com.gutai.admin.common.entity.response;

import java.util.List;

@SuppressWarnings("rawtypes")
public class ListResponse implements Response {

    private List result;

	private String succ;

	private String msg;

    private List rows;

    private int totalSize;

    public ListResponse() {
        super();
    }

    public ListResponse(List result) {
        super();
        this.rows = result;
        this.totalSize = result.size();
    }

    public ListResponse(List result, Integer totalSize) {
        super();
        this.rows = result;
        this.totalSize = totalSize;
    }

	@Override
	public List getResult() {
		return result;
	}
	
	@Override
	public void setResult(Object result) {
        // this.result = (List) result;
        this.rows = (List) result;
	}
	@Override
	public String getSucc() {
		return succ;
	}
	@Override
	public void setSucc(String succ) {
		this.succ = succ;
	}
	@Override
	public String getMsg() {
		return msg;
	}
	@Override
	public void setMsg(String msg) {
		this.msg = msg;
	}

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

}
